package com.woniuxy.hbum.user.service;

import com.woniuxy.hbum.user.dao.UserDAO;
import com.woniuxy.hbum.user.dto.UserDto;

public class RegisterService {

	public boolean doRegister(UserDto baseDTO) {
		boolean flag = false;
		if(baseDTO != null){
			String username = baseDTO.getName();
			String password = baseDTO.getPassword();
			if(username.trim().length()>0 && password.trim().length()>0){
				flag = new UserDAO().insert(baseDTO);
			}
		}
		
		return flag;
	}

}
